package com.seckill.seckilldemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.seckill.seckilldemo.pojo.User;
import com.seckill.seckilldemo.vo.LoginVo;
import com.seckill.seckilldemo.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 *
 * hzl
 *
 */
public interface IUserService extends IService<User> {

    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    //根据Cookie获取用户（从Redis获取）
    User getUserByCookie(String userTicket,HttpServletRequest request,HttpServletResponse response);
}
